package xcmg.device.web.task;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xcmg.device.service.task.SyncGpsTaskService;

import javax.annotation.Resource;

@RestController
@RequestMapping("/gpsTask")
public class SyncGpsTaskController {

    @Resource
    private SyncGpsTaskService syncGpsTaskService;

    // 手动调用定时任务
    @RequestMapping("/syncGpsPart")
    public void syncGpsTask() {
        syncGpsTaskService.syncGpsPart(null);
    }
}
